package com.waiting.design.observe;

import java.util.Observable;
import java.util.Observer;

/**
 * @Description 观察者，负责接收消息，进行消费
 * @Author bjweitingting
 * @Date 2018/11/27
 **/
public class ConsumerMessage implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        System.out.println("消息被消费了---" + arg.toString());
    }
}
